import Taro, { Component, Config, useEffect, useState } from '@tarojs/taro'
import { View, Text } from '@tarojs/components'


const Dialoge = (props) => {
    return (
        <View>
            <View className='dialog'>
                <View className='header'>Welcomess!</View>
                <View className='body'>
                    {props.children}
                </View>
                <View className='footer'>-- divider --</View>
            </View>
        </View>
    )
}
// class Dialoge extends Component {
//     render() {
//         return (
//             <View className='dialog'>
//                 <View className='header'>Welcome!</View>
//                 <View className='body'>
//                     {this.props.children}
//                 </View>
//                 <View className='footer'>-- divider --</View>
//             </View>
//         )
//     }
// }
export default Dialoge